<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" width="200px">
<thead>
<th>姓名</th>
<th>密码</th>
</thead>
<tbody th:each="item:${data}">
    <tr>
        <td th:text="${item['username']}"></td>
        <td th:text="${item['password']}"></td>
    </tr>
</tbody>
</table>
</body>
</html>